home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / KSLIB11.ARJ / DEMO2.C < prev    next >
Text File  |  1991-10-14  |  474b  |  24 lines

  1. /*
  2. *
  3. *    Program to show the simplest form of window creation. It pops up a
  4. *    window, then waits for a keypress, then exits. Because it's the first
  5. *    window on the screen, you do not need to specify POPUP, as the DOS
  6. *    screen is automatically restored on exit.
  7. *
  8. */
  9.  
  10. #include <stdio.h>
  11.  
  12. #include "stdinc.h"
  13. #include "wn.h"
  14. #include "kb.h"
  15.  
  16. void    main(void);
  17.  
  18. void
  19. main()
  20. {
  21.     WNopen(25,5,55,15,BLACK|BKGR(LIGHTGRAY),DOUBLE,"Press any key");
  22.     KBgetch();
  23. }
  24.